package com.songaw.cangku.pojo.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.songaw.cangku.pojo.entity.ClothesTable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.session.RowBounds;

import java.util.Date;

/**
 * TODO
 *
 * @author songaw
 * @date 2018/4/1 17:13
 */
@Data
public class ClothesTableVo extends ClothesTable {
    private int pageIndex = 0;

    private int pageSize = Integer.MAX_VALUE;
    @ApiModelProperty(value = "开始交货日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date beginSubmitDate;
    @ApiModelProperty(value = "结束交货日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endSubmitDate;
    @ApiModelProperty(value = "开始领货日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date beginClaimedDate;
    @ApiModelProperty(value = "结束领货日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endClaimedDate;
    public RowBounds getRowBounds() {
        return new RowBounds(pageIndex, pageSize);
    }
}
